<template>
	<view>
		<view class="exam-list">
			<view class="item" @click.stop="">
				<view class="top">
					<view class="exam-title">
						全部收藏
					</view>
					<view class="sub-title">
						共60套
					</view>
				</view>
				<view class="bottom">
					<view class="left">
						查看题目
					</view>
					<view class="right">
						收藏记录
					</view>
				</view>
			</view>
			<view class="item" v-for="(v,k) in beforeList" :key="k" @click.stop="toBookDetail(k,v)">
				<view class="top">
					<view class="exam-title">
						{{v.title}}
					</view>
					<view class="sub-title">
						共60题
					</view>
				</view>
				<view class="top">
					<view class="exam-title">
						被收藏次数
					</view>
					<view class="sub-title">
						共600次
					</view>
				</view>
				<view class="bottom">
					<view class="left">
						查看题目
					</view>
					<view class="right">
						考试记录
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
			
		},
		data() {
			return {
				scrollTop: 0,
				scrollH: 0, 
				userInfo:"",
				beforeList: [{
						title: '2000年《高等数学》真题试卷',
						use: 10,
						sum: 100,
						rightPer: 65,
						isFree: 1
					},
					{
						title: '第二章 高等数学',
						use: 0,
						sum: 100,
						rightPer: 0,
						isFree: 0
					},
					{
						title: '第三章 高等物理',
						use: 0,
						sum: 100,
						rightPer: 0,
						isFree: 0
					}
				],
				book: {},
				sumPage: 0,
				page: 1,
				limit: 10,
			};
		},
		}
</script>

<style lang="scss">
	.exam-list {
		margin: 25rpx 25rpx 50rpx 25rpx;
	
		.title {
			color: #333;
			font-size: 30rpx;
			margin-bottom: 40rpx;
	
			text {
				margin-left: 25rpx;
				color: #555;
				font-weight: normal;
				font-size: 30rpx
			}
		}
	
		.item {
			padding: 35rpx;
			margin-bottom: 25rpx;
			background: #fff;
			box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.3);
			border-radius: 10rpx;
			overflow: hidden;
			.top{
				border-bottom: 1rpx #cfcfcf solid;
				padding: 10rpx 0;
				display: flex;
				justify-content: space-between;
				.sub-title{
					font-size: 25rpx;
					color: #888;
				}
			}
			.bottom{
				padding-top: 20rpx;
				display: flex;
				justify-content: space-around;
				font-size: 28rpx;
				color: $themeColor;
			}
	       
			.exam-title {
				font-size: 30rpx;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
	            color: #333;
				.sub-title {
					font-size: 25rpx;
					color: #666;
				}
			}
	
		}
	}
</style>